Skip to content

fix: eslint error on template-eslint/react-{js,ts}#69

Merged
chenjiahan merged 1 commit into
rstackjs:mainfrom
colinaaa:colin/1104/eslint-react-hooks
Nov 4, 2025
Merged

fix: eslint error on template-eslint/react-{js,ts}#69
chenjiahan merged 1 commit into
rstackjs:mainfrom
colinaaa:colin/1104/eslint-react-hooks

Conversation

@colinaaa

@colinaaa colinaaa commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Fix the ESLint error:

> rsbuild-project@1.0.0 lint
> eslint .


Oops! Something went wrong! :(

ESLint: 9.39.1


A config object has a "plugins" key defined as an array of strings. It looks something like this:

    {
        "plugins": ["react-hooks"]
    }

Flat config requires "plugins" to be an object, like this:

    {
        plugins: {
            react-hooks: pluginObject
        }
    }

Please see the following page for information on how to convert your config object into the correct format:
https://eslint.org/docs/latest/use/configure/migration-guide#importing-plugins-and-custom-parsers

If you're using a shareable config that you cannot rewrite in flat config format, then use the compatibility utility:
https://eslint.org/docs/latest/use/configure/migration-guide#using-eslintrc-configs-in-flat-config

@chenjiahan chenjiahan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenjiahan chenjiahan merged commit 93daa5f into rstackjs:main Nov 4, 2025
1 check passed
@chenjiahan

Copy link
Copy Markdown
Member

Released: https://github.com/rspack-contrib/create-rstack/releases/tag/v1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants